package domain;
import java.util.List;
/**
 * @author: 爱学Java 不想秃头的 KK
 * @date: 2023/6/28 20:09
 * @version: 1.0
 * @Created with IntelliJ IDEA.
 * @Description:
 */
public class PageBean <T,M>{
    private int totalCount; //文章总条数
    private int totalPage; //总页码数
    private int currentPage; //当前页面
    private int pageSize; //每页显示的条数
    private List<M> list; //每页显示的数据

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public List<M> getList() {
        return list;
    }

    public void setList(List<M> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "totalCount=" + totalCount +
                ", totalPage=" + totalPage +
                ", currentPage=" + currentPage +
                ", pageSize=" + pageSize +
                ", list=" + list +
                '}';
    }
}
